# Contributor: Rasmus Thomsen <oss@cogitri.dev>
# Maintainer: Rasmus Thomsen <oss@cogitri.dev>
pkgname=network-manager-applet
pkgver=1.28.0
pkgrel=0
pkgdesc="GTK network manager applet"
url="https://wiki.gnome.org/Projects/NetworkManager"
# s390x and riscv64 blocked by networkmanager and polkit
arch="all !s390x !riscv64"
license="GPL-2.0-or-later"
depends="dbus:org.freedesktop.Secrets"
makedepends="
	gcr-dev
	gtk+3.0-dev
	intltool
	jansson-dev
	libappindicator-dev
	libdbusmenu-gtk3-dev
	libgudev-dev
	libnma-dev
	libnotify-dev
	libsecret-dev
	meson
	modemmanager-dev
	networkmanager-dev
	polkit-dev
	"
subpackages="$pkgname-doc $pkgname-lang"
source="https://download.gnome.org/sources/network-manager-applet/${pkgver%.*}/network-manager-applet-$pkgver.tar.xz"

build() {
	abuild-meson \
		-Dselinux=false \
		. output
	meson compile -C output
}

check() {
	meson test -v --no-rebuild -C output
}

package() {
	DESTDIR="$pkgdir" meson install --no-rebuild -C output
}

sha512sums="
1e594c6a8ecfd7c92e718238f036f95c0706a70699b9836ba4ca3b6b033db1b36a08ef4778e6615cfd0cfcaec120063a67c642734c45d71aee86b17a5de4b647  network-manager-applet-1.28.0.tar.xz
"
